package com.lansi.blegatewayconfig.bean;

import java.io.Serializable;

public class BleGatewayConfig implements Serializable{
	

	/**
	 * 
	 */
	private static final long serialVersionUID = -5452341685700101237L;
	private Integer id; 
	private String  deveui;
	private String  sn;
	private String  name;
	private Byte  	adr;
	private String  adrStr;
	private Byte  	rfu;
	private Byte  	dr;
	private String  drStr;
	private Byte  	mode;
	private String  modeStr;
	private Byte  	smode;
	private Byte  	power;
	private Byte 	lostpoint;
	private Byte  	selfadapt;
	private Byte  	oneoff;
	private Byte 	alreport;
	private Short 	gps;
	private Short 	hb;
	private Short 	crc16;
	public Integer getId() {
		return id;
	}
	public String getDeveui() {
		return deveui;
	}
	public String getSn() {
		return sn;
	}
	public String getName() {
		return name;
	}
	public Byte getAdr() {
		return adr;
	}
	public String getAdrStr() {
		return adrStr;
	}
	public Byte getRfu() {
		return rfu;
	}
	public Byte getDr() {
		return dr;
	}
	public String getDrStr() {
		return drStr;
	}
	public Byte getMode() {
		return mode;
	}
	public String getModeStr() {
		return modeStr;
	}
	public Byte getSmode() {
		return smode;
	}
	public Byte getPower() {
		return power;
	}
	public Byte getLostpoint() {
		return lostpoint;
	}
	public Byte getSelfadapt() {
		return selfadapt;
	}
	public Byte getOneoff() {
		return oneoff;
	}
	public Byte getAlreport() {
		return alreport;
	}
	public Short getGps() {
		return gps;
	}
	public Short getHb() {
		return hb;
	}
	public Short getCrc16() {
		return crc16;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setDeveui(String deveui) {
		this.deveui = deveui;
	}
	public void setSn(String sn) {
		this.sn = sn;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setAdr(Byte adr) {
		this.adr = adr;
	}
	public void setAdrStr(String adrStr) {
		this.adrStr = adrStr;
	}
	public void setRfu(Byte rfu) {
		this.rfu = rfu;
	}
	public void setDr(Byte dr) {
		this.dr = dr;
	}
	public void setDrStr(String drStr) {
		this.drStr = drStr;
	}
	public void setMode(Byte mode) {
		this.mode = mode;
	}
	public void setModeStr(String modeStr) {
		this.modeStr = modeStr;
	}
	public void setSmode(Byte smode) {
		this.smode = smode;
	}
	public void setPower(Byte power) {
		this.power = power;
	}
	public void setLostpoint(Byte lostpoint) {
		this.lostpoint = lostpoint;
	}
	public void setSelfadapt(Byte selfadapt) {
		this.selfadapt = selfadapt;
	}
	public void setOneoff(Byte oneoff) {
		this.oneoff = oneoff;
	}
	public void setAlreport(Byte alreport) {
		this.alreport = alreport;
	}
	public void setGps(Short gps) {
		this.gps = gps;
	}
	public void setHb(Short hb) {
		this.hb = hb;
	}
	public void setCrc16(Short crc16) {
		this.crc16 = crc16;
	}
	@Override
	public String toString() {
		return "BleGateway [id=" + id + ", deveui=" + deveui + ", sn=" + sn + ", name=" + name + ", adr=" + adr
				+ ", adrStr=" + adrStr + ", rfu=" + rfu + ", dr=" + dr + ", drStr=" + drStr + ", mode=" + mode
				+ ", modeStr=" + modeStr + ", smode=" + smode + ", power=" + power + ", lostpoint=" + lostpoint
				+ ", selfadapt=" + selfadapt + ", oneoff=" + oneoff + ", alreport=" + alreport + ", gps=" + gps
				+ ", hb=" + hb + ", crc16=" + crc16 + "]";
	}
	public BleGatewayConfig() {
		
	}
	
	public BleGatewayConfig(Integer id, String deveui, String sn, String name, Byte adr, String adrStr, Byte rfu, Byte dr,
			String drStr, Byte mode, String modeStr, Byte smode, Byte power, Byte lostpoint, Byte selfadapt,
			Byte oneoff, Byte alreport, Short gps, Short hb, Short crc16) {
		super();
		this.id = id;
		this.deveui = deveui;
		this.sn = sn;
		this.name = name;
		this.adr = adr;
		this.adrStr = adrStr;
		this.rfu = rfu;
		this.dr = dr;
		this.drStr = drStr;
		this.mode = mode;
		this.modeStr = modeStr;
		this.smode = smode;
		this.power = power;
		this.lostpoint = lostpoint;
		this.selfadapt = selfadapt;
		this.oneoff = oneoff;
		this.alreport = alreport;
		this.gps = gps;
		this.hb = hb;
		this.crc16 = crc16;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((adr == null) ? 0 : adr.hashCode());
		result = prime * result + ((adrStr == null) ? 0 : adrStr.hashCode());
		result = prime * result + ((alreport == null) ? 0 : alreport.hashCode());
		result = prime * result + ((crc16 == null) ? 0 : crc16.hashCode());
		result = prime * result + ((deveui == null) ? 0 : deveui.hashCode());
		result = prime * result + ((dr == null) ? 0 : dr.hashCode());
		result = prime * result + ((drStr == null) ? 0 : drStr.hashCode());
		result = prime * result + ((gps == null) ? 0 : gps.hashCode());
		result = prime * result + ((hb == null) ? 0 : hb.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((lostpoint == null) ? 0 : lostpoint.hashCode());
		result = prime * result + ((mode == null) ? 0 : mode.hashCode());
		result = prime * result + ((modeStr == null) ? 0 : modeStr.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((oneoff == null) ? 0 : oneoff.hashCode());
		result = prime * result + ((power == null) ? 0 : power.hashCode());
		result = prime * result + ((rfu == null) ? 0 : rfu.hashCode());
		result = prime * result + ((selfadapt == null) ? 0 : selfadapt.hashCode());
		result = prime * result + ((smode == null) ? 0 : smode.hashCode());
		result = prime * result + ((sn == null) ? 0 : sn.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BleGatewayConfig other = (BleGatewayConfig) obj;
		if (adr == null) {
			if (other.adr != null)
				return false;
		} else if (!adr.equals(other.adr))
			return false;
		if (adrStr == null) {
			if (other.adrStr != null)
				return false;
		} else if (!adrStr.equals(other.adrStr))
			return false;
		if (alreport == null) {
			if (other.alreport != null)
				return false;
		} else if (!alreport.equals(other.alreport))
			return false;
		if (crc16 == null) {
			if (other.crc16 != null)
				return false;
		} else if (!crc16.equals(other.crc16))
			return false;
		if (deveui == null) {
			if (other.deveui != null)
				return false;
		} else if (!deveui.equals(other.deveui))
			return false;
		if (dr == null) {
			if (other.dr != null)
				return false;
		} else if (!dr.equals(other.dr))
			return false;
		if (drStr == null) {
			if (other.drStr != null)
				return false;
		} else if (!drStr.equals(other.drStr))
			return false;
		if (gps == null) {
			if (other.gps != null)
				return false;
		} else if (!gps.equals(other.gps))
			return false;
		if (hb == null) {
			if (other.hb != null)
				return false;
		} else if (!hb.equals(other.hb))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (lostpoint == null) {
			if (other.lostpoint != null)
				return false;
		} else if (!lostpoint.equals(other.lostpoint))
			return false;
		if (mode == null) {
			if (other.mode != null)
				return false;
		} else if (!mode.equals(other.mode))
			return false;
		if (modeStr == null) {
			if (other.modeStr != null)
				return false;
		} else if (!modeStr.equals(other.modeStr))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (oneoff == null) {
			if (other.oneoff != null)
				return false;
		} else if (!oneoff.equals(other.oneoff))
			return false;
		if (power == null) {
			if (other.power != null)
				return false;
		} else if (!power.equals(other.power))
			return false;
		if (rfu == null) {
			if (other.rfu != null)
				return false;
		} else if (!rfu.equals(other.rfu))
			return false;
		if (selfadapt == null) {
			if (other.selfadapt != null)
				return false;
		} else if (!selfadapt.equals(other.selfadapt))
			return false;
		if (smode == null) {
			if (other.smode != null)
				return false;
		} else if (!smode.equals(other.smode))
			return false;
		if (sn == null) {
			if (other.sn != null)
				return false;
		} else if (!sn.equals(other.sn))
			return false;
		return true;
	}
	
	
	
	
}
